package com.studyroom.utils;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class Md5Utils {
    public static String encrypt(String password){
        SimpleHash simpleHash=new SimpleHash ("MD5",password,"DarkKnight",3);
        return simpleHash.toHex ();
    }
}
